<!DOCTYPE html>
<html lang="CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <title>会员登录</title>
    <link href="__INDEX__/css/reg.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__INDEX__/js/css/Dialog.1.0.css">
    <script src="__INDEX__/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="__INDEX__/js/Dialog.js"></script>
    <style>
        body{
            background: url(__INDEX__/images/bj.png) top center no-repeat !important;
            background-size: cover;}
        .common-bg {
            width: 100%;
            height: 100%;
            background:none;
            text-align: center;
            position: relative;
        }
        .tip-err2 p{ font-size: 12px;  }
    </style>
</head>
<body style="height: 671px;">
<div class="container-fluid common-bg">
    <div class="common-warp">
        <!-- <a href="/"><img src="__INDEX__/images/logo.png" width="170" style="padding: 20px 0;"></a>-->
        <div class="restructure-into-register" id="ppsContainer">
            <div class="panel panel-default res-complete" style="padding-bottom:20px; border: none;">
                <div class="panel-body">
                    <h4 style="padding-bottom: 20px; padding-top: 15px; font-size: 18px;">用户登录</h4>
                    <form class="form-horizontal registerform" id="registerform">
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-2">
                                <input type="text" class="form-control numeric" name="adminuser" maxlength="12" placeholder="用户名" autocomplete="on" value="">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-2">
                                <input type="password" id="userpwd" name="adminpassword" class="form-control" placeholder="密码(6~16个字符，区分大小写)" autocomplete="off">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <input type="text" maxlength="6" class="form-control" name="validate" placeholder="图片验证码" style="height:40px; line-height:40px;">
                            </div>
                            <div class="col-sm-4">
                                <img  title="点击刷新" src="{:captcha_src()}" align="absbottom" onclick="this.src='{:captcha_src()}?'+Math.random();" style="width:100px; height:40px; line-height:40px; cursor:pointer"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2  col-sm-8">
                                <div onclick="return checkform(); "class="btn o-btn8" style="width:100%;  ">登录</div>
                            </div>
                            <p class="col-sm-8  col-sm-offset-2 text-center" style="margin-top:10px; font-size: 12px;">没有账户？<a style="font-size: 12px; color: #2196f3;" href="register.php" target="_self">立即注册</a></p>
                        </div>
                        <div class="khsdf"></div>
                    </form>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            function checkform()//使用JS来验证用户输入是否符合规范
            {
                   var d = $('#registerform').serialize();
                   var u = "{:url('Login/index')}";
                   $.post(u,d,function(e){

                       if(e.url == true){
                           window.location.href=e.url;
                       }
                       $('.khsdf').html(e.msg);
                   });

            }
        </script>
    </div>
</div>
</body>
</html>